<template>
  <div class="error">
    <el-empty :image-size="400" />
    <footer>
      <el-button type="primary" @click="router.push('/')">返回首页</el-button>
      <el-button type="warning" @click="router.go(-1)">返回上一级</el-button>
    </footer>
  </div>
</template>

<script setup lang="ts">
import { useRouter } from 'vue-router'
const router = useRouter()
</script>

<style lang="scss" scoped>
.error {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
</style>
